home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4927 < prev    next >
Encoding:
Text File  |  1996-08-06  |  718 b   |  40 lines

  1. Path: news.datasrv.co.il!usenet
  2. From: dmitry@enigma.co.il (Dmitry A. Davidovich)
  3. Newsgroups: comp.lang.c++
  4. Subject: C++ Gurus! Is it correct?
  5. Date: Thu, 01 Feb 1996 17:10:45 GMT
  6. Organization: Enigma Inc.
  7. Message-ID: <4eqvtg$cg5@israel-info.datasrv.co.il>
  8. NNTP-Posting-Host: dmitry.enigma.co.il
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. Is next code is correct from point of view of pure C++ ?
  12.  
  13. class A
  14. {
  15. };
  16.  
  17. class B
  18. {
  19. };
  20.  
  21. class C : public A, public B
  22. {
  23. };
  24.  
  25. A* pA = new C;
  26. B* pB = new C;
  27.  
  28. delete pA;
  29. delete pB;
  30.  
  31. Please, mail me copy of response.
  32.  
  33. +++++++++++++++++++++++++++++++++++++++++
  34. Dmitry Davidovich
  35. CS Tel Aviv University
  36. dmitry@enigma.co.il
  37. ddmitry@libra.math.tau.ac.il
  38. +++++++++++++++++++++++++++++++++++++++++
  39.  
  40.